﻿<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Page Language="C#" AutoEventWireup="true" Inherits="Microsoft.SharePoint.WebControls.UnsecuredLayoutsPageBase" DynamicMasterPageFile="~masterurl/default.master" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>

<script runat="server">
    string s = "Hello";
    
    // notes for future dev work
    /*
    // add a property
    web.Properties[key] = value;
    web.AllProperties[key] = value;
    web.Update();
    web.Properties.Update();
    // remove a property
    web.AllProperties.Remove(key);
    web.Properties[key] = null;
    web.Update();
    web.Properties.Update();
    */
</script>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
jQuery Super Feature Configuration
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
jQuery Super Feature
</asp:Content>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <h3>Configuring the jQuery Super Feature</h3>
    <div>
        Three options explained:
        <ul>
            <li>None: Don't include this library for this site</li>
            <li>Local: Include the version from this SharePoint server</li>
            <li>CDN: Use the Content Distribution Network version from another vendor</li>
        </ul>
    </div>
    <fieldset>
        <legend>jQuery</legend>
        <div class="info">
            <div class="homepage">
                <span>Homepage:</span> 
                <a href="http://jquery.com/">http://jquery.com/</a>
            </div>
            <div class="license">
                <span>Copyright/License info:</span> 
                <a href="http://jquery.org/license/">http://jquery.org/license/</a>
                <div>
                    You may use any jQuery project under the terms of either the 
                    MIT License or the GNU General Public License (GPL) Version 2
                </div>
            </div>
            <div class="options">
                <div>
                    <label>Source:</label>
                    <input type="radio" name="jquery-source" id="jquery-source-none" value="None" />
                    <label for="source-none">None</label>
                    <input type="radio" name="jquery-source" id="jquery-source-local" value="Local" />
                    <label for="source-local">Local</label>
                    <input type="radio" name="jquery-source" id="jquery-source-cdn" value="CDN" />
                    <label for="source-cdn">CDN</label>
                </div>
                <div>
                    <!-- It would be nice to include a warning about Media Temple CDN not support SSL -->
                    <label>CDN:</label>
                    <input type="radio" name="jquery-cdn" id="jquery-cdn-google" value="Google" />
                    <label for="jquery-cdn-google">Google</label>
                    <input type="radio" name="jquery-cdn" id="jquery-cdn-microsoft" value="Microsoft" />
                    <label for="jquery-cdn-microsoft">Microsoft</label>
                    <input type="radio" name="jquery-cdn" id="jquery-cdn-jquery" value="jQuery" />
                    <label for="jquery-cdn-jquery">jQuery (Media Temple)</label>
                </div>
                <div>
                    <select name="jQuery" id="jQuery">
                        <option value="#">1.2.6</option>
                        <option value="#">1.3.2</option>
                        <option value="#">1.4.4</option>
                        <option value="#">1.5.2</option>
                        <option value="#">1.6.4</option>
                        <option value="#">1.7.1</option>
                    </select>
                </div>
                <div>
                    <span>Preview: </span>
                    <code>&lt;script src="booger"&gt;&lt;/script&gt;</code>
                </div>
            </div>
        </div>
    </fieldset>
</asp:Content>
